/*
 * main.c
 *
 *  Created on: 07.01.2013
 *      Author: Michael
 */

#include "Queue.h"
#include <stdio.h>

// Main entry point of the application
int main(int argc, char** argv) {
	Queue <int> queue;
	queue.enqueue(5);
	queue.enqueue(3);
	queue.enqueue(7);
	queue.enqueue(8);
	queue.enqueue(1);
	queue.print();

	printf("Size: %d\n", queue.size());
	printf("Empty? %s\n", queue.isEmpty()?"true":"false");

	int ret = queue.dequeue();
	printf("Removed: %d\n", ret);
	queue.print();

	queue.dequeue();
	queue.print();
	queue.dequeue();
	queue.print();
	queue.dequeue();
	queue.print();
	queue.dequeue();
	queue.print();

	printf("Empty? %s\n", queue.isEmpty()?"true":"false");
	return 0;
}

